<div id="wrapper">
    <div id="page-wrapper">
        <div class="panel panel-default">
            <div class="panel-body">
                <div class="panel">
                    <a href="/home/shop/addgoodspage" target="_blank">
                        <button class="btn btn-danger" type="button">增加</button>
                    </a>
                </div>
                {%notempty name="data"%}
                {%volist name="data->toArray()['data']" id="vo"%}
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 id={%$vo['goods_id']%} class="panel-title" style="display:inline;"><a
                                href="/home/shop/goodsdetailpage?goods_id={%$vo['goods_id']%}&type=detail"
                                target="_blank">{%$vo['goods_name']%}</a></h3>
                        <button id={%$vo['goods_id']%} class="btn btn-primary pull-right delgoods"
                                style="padding-bottom: 0px;padding-top: 0px;">删除
                        </button>
                    </div>
                    <div class="panel-body">
                        <table class="table">
                            <tr>

                                <th style="border-top: 0px;">商品ID：<span>{%$vo['goods_id']%}</span></th>
                                <th style="border-top: 0px;">商品类型：<span>{%$vo['cat_id']%}</span></th>
                                <th style="border-top: 0px;">条形编码：<span>{%$vo['goods_sn']%}</span></th>
                                <th style="border-top: 0px;">是否在售：<span>{%$vo['is_on_sale']%}</span></th>
                            </tr>
                            <tr>
                                <th style="border-top: 0px;">售出数量：<span>{%$vo['sale_count']%}</span></th>
                                <th style="border-top: 0px;">库存数量：<span>{%$vo['goods_number']%}</span></th>
                                <th style="border-top: 0px;">商品原价：<span>{%$vo['shop_price']%}</span></th>
                                <th style="border-top: 0px;">市场价格：<span>{%$vo['market_price']%}</span></th>
                            </tr>
                            <tr>
                                <th style="border-top: 0px;">是否包邮：<span>{%$vo['is_free_shipping']%}</span></th>
                                <th style="border-top: 0px;">品牌名称：<span>{%$vo['brand_id']%}</span></th>
                            </tr>

                        </table>
                    </div>
                </div>
                {%/volist%}
                {%/notempty%}
                <div class="pull-right">
                    {%notempty name="data"%}
                    {%$data->render()%}
                    {%/notempty%}
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id='deleteModal' tabindex="-1" role="dialog">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">确认删除</h4>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
                <button id="delete_confirm" type="button" class="btn btn-danger">确认</button>
            </div>
        </div>
    </div>
</div>
<script src="/static/home/widget/shop/goodslist/goodslist.js"></script>


